package com.engine4cloud.tdf.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.education.dto.create.EduResourceCreateDTO;
import com.engine4cloud.tdf.education.dto.query.EduResourceQueryDTO;
import com.engine4cloud.tdf.education.dto.result.EduResourceResultDTO;
import com.engine4cloud.tdf.education.dto.update.EduResourceUpdateDTO;
import com.engine4cloud.tdf.education.entity.EduResourceEntity;

import java.util.List;

public interface EduResourceService extends IService<EduResourceEntity> {

    PageInfo<EduResourceResultDTO> pageList(Params page, EduResourceQueryDTO dto);

    EduResourceResultDTO getById(Long id);

    Boolean create(EduResourceCreateDTO dto);

    Boolean update(EduResourceUpdateDTO dto);

    List<EduResourceResultDTO> findListByCourse(String courseCode);
}